# -*- coding:utf-8 -*-

# @Time : 2022/11/22 15:11
# @Author : 快乐的小猴子
# @Version : 
# @Function : 

from YouMeiPics.conf import settings
from YouMeiPics.PubBases import PublicBases
from YouMeiPics.TuShuoTianXia.TuShuoTianXia import TuShuoTianXia
from YouMeiPics.BiZhiTuPian.BiZhiTuPian import BiZhiTuPian
from YouMeiPics.MeiNvTuPian.MeiNvTuPian import MeiNvTuPian
from YouMeiPics.GaoXiaoTuPian.GaoXiaoTuPian import GaoXiaoTuPian


def main():
    # 创建公共类对象
    publicbases = PublicBases()
    # 向主链接发送请求并获取响应数据
    html = publicbases.send(settings.url)
    # 筛选出子链接相关所有的数据信息
    data_list = publicbases.handle_son_datas(html)

    """ 图说天下部分 """
    # # 创建主逻辑对象
    # tushuotianxia = TuShuoTianXia()
    # # 进入主逻辑
    # tushuotianxia.major(data_list)

    """ 壁纸图片部分 """
    # # 创建主逻辑对象
    # bizhitupian = BiZhiTuPian()
    # # 进入主逻辑
    # bizhitupian.major(data_list)

    """ 美女图片部分 """
    # # 创建主逻辑对象
    # meinvgirls = MeiNvTuPian()
    # # 进入主逻辑
    # meinvgirls.major(data_list)

    """ 搞笑图片部分 """
    # 创建主逻辑对象
    gaoxiaopics = GaoXiaoTuPian()
    # 进入主逻辑
    gaoxiaopics.major(data_list)


if __name__ == '__main__':
    main()
